<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<div class='span2 news1' style='height:140px;'>
  <div class="">
  <ul class='menu nav nav-tabs nav-stacked'>
    <c:forEach items="${xxydtypes }" var="types">
        <li id='type${types.xyydtypeId }'><a href='<%=basePath%>learning/index_${types.xyydtypeId }/1'>${types.xyydtypeName }</a></li>
    </c:forEach>
    
     
  </ul>
  </div>
  </div>
<div class='span10 panel' >
 <div class=" ">

      <!-- Main hero unit for a primary marketing message or call to action -->
      
       <div class="">
       <div class="panel-heading word tou"><strong>${xxydtype.xyydtypeName }</strong></div>
       <c:if test="${empty xxyds }">
          <p style='color:#990000;'>暂无信息。</p>
       
       </c:if>
		<c:if test="${not empty xxyds }">
		  
      <!-- Example row of columns -->
      <c:forEach begin="1" end="${fn:length(xxyds)}" step="3" varStatus="status">
                <div class="span12 color-word" style='margin-left:0px;'>
					<c:forEach items="${xxyds }" var="xxyd"
						begin="${(status.count-1)*3 }" end="${(status.count)*3-1 }" varStatus="status1">
						
						    <div class="span3 colorblock${status.count*status1.count } color-word" style='margin-left:30px;'>
							<div class='texthidden4 culture-title' title="${xxyd.xyydName }">${xxyd.xyydName }</div>
							<div style='height:100px;'><p>${xxyd.xyydtGk }</p></div>
							<p style='margin-left:55px;'>
								<a class="btn" href='<%=basePath%>learning/detail/${xxyd.xyydId}' title="查看详细">详细内容
									&raquo;</a>
							</p>
						</div>
						
					</c:forEach>
				</div>
      </c:forEach>
      <div id="" class="span12" style='margin-left:40%;margin-top:50px;'>
		   
	   <p> <a href='<%=basePath%>learning/index_${xxyds[0].xyydtId.xyydtypeId }/1 '>【首	页】</a>
	   <a href='<%=basePath%>learning/index_${xxyds[0].xyydtId.xyydtypeId }/${pagenow-1 } ' id="first">【上一页】</a>
	   <a  class="pagenow">
	   <strong style='color:red;font-size:16px;'>${pagenow}</strong></a>...
	   <a href='<%=basePath%>learning/index_${xxyds[0].xyydtId.xyydtypeId }/${pagecount }'>${pagecount }</a>
	   <a href='<%=basePath%>learning/index_${xxyds[0].xyydtId.xyydtypeId }/${pagenow+1 } ' id="next">【下一页】</a>
	   <a href='<%=basePath%>learning/index_${xxyds[0].xyydtId.xyydtypeId }/${pagecount } '>【末	页】</a>
	   </p>
	   <script type="text/javascript">
	   $(function(){
		   var page = ${pagenow};
		   
		   var pagecount = ${pagecount};
		 
		   if(parseFloat(page)+1 >parseFloat(pagecount))
			   {
			       $("#next").hide();
			   }
		   if(parseFloat(page)-1 <1)
			   {
			     $("#first").hide();
			   }else{
				   $("#first").show();
			   };
			  
	   });
	</script>
	</div>
		</c:if>
    </div> <!-- /container -->
</div>
</div>